import request from '@/utils/request'

// 查询调查列列表
export function listSurvey(query) {
  return request({
    url: '/survey/list',
    method: 'get',
    params: query
  })
}

// 查询调查列列表
export function listSurveyProjects() {
  return request({
    url: '/survey/list.projects',
    method: 'get'
  })
}

export function listSurveyStatus() {
  return request({
    url: '/survey/list.status',
    method: 'get'
  })
}
// 查询调查列详细
export function getSurvey(fSurveyid) {
  return request({
    url: '/survey/' + fSurveyid,
    method: 'get'
  })
}

// 新增调查列
export function addSurvey(data) {
  return request({
    url: '/survey',
    method: 'post',
    data: data
  })
}

// 修改调查列
export function updateSurvey(data) {
  return request({
    url: '/survey/updatenygbz',
    method: 'post',
    data: data
  })
}

// 删除调查列
export function delSurvey(fSurveyid) {
  return request({
    url: '/survey/' + fSurveyid,
    method: 'delete'
  })
}
export function statisSurvey(){
  return request({
    url: '/survey/gbzstatis',
    method: 'get'
  })
}
